package leecode

func mechanicalAccumulator(target int) int {
	if target <= 0 {
		return 0
	}
	sum := target + mechanicalAccumulator(target-1)
	return sum
}
